package JD_SYNC_DCL;

public class Example_01 {
    class MyClass {
        MyClass son;
        void doubleCheckedLocking() {
            if (son==null) {
                synchronized (this) {
                    if (son==null) {
                        son = new MyClass();
                    }
                }
            }
        }
    }
}
